import { PageContainer } from '@ant-design/pro-components';
import { useModel } from '@umijs/max';
import { Space, Card, Col, Row, Statistic } from 'antd';
const Welcome = () => {
  const { initialState } = useModel('@@initialState');
  return (
    <PageContainer>
      <Row gutter={[16, 150]}>
        <Col span={12}>
          <Card title="车辆概况">
            <Row>
              <Col span={8}>
                <Statistic title="总车辆" value={112893} />
              </Col>
              <Col span={8}>
                <Statistic title="今日上线车辆" value={112893} />
              </Col>
              <Col span={8}>
                <Statistic title="当前在线车辆" value={112893} />
              </Col>
            </Row>
          </Card>
        </Col>
        <Col span={12}>
          <Card title="里程概况">
            <Row>
              <Col span={8}>
                <Statistic title="总里程" value={112893} />
              </Col>
              <Col span={8}>
                <Statistic title="今天里程" value={112893} />
              </Col>
              <Col span={8}>
                <Statistic title="昨日里程" value={112893} />
              </Col>
            </Row>
          </Card>
        </Col>
      </Row>
      <p></p>
      <Row gutter={[16, 150]}>
        <Col span={12}>
          <Card title="车辆概况">
            <Row>
              <Col span={8}>
                <Statistic title="总车辆" value={112893} />
              </Col>
              <Col span={8}>
                <Statistic title="今日上线车辆" value={112893} />
              </Col>
              <Col span={8}>
                <Statistic title="当前在线车辆" value={112893} />
              </Col>
            </Row>
          </Card>
        </Col>
        <Col span={12}>
          <Card title="里程概况">
            <Row>
              <Col span={8}>
                <Statistic title="总里程" value={112893} />
              </Col>
              <Col span={8}>
                <Statistic title="今天里程" value={112893} />
              </Col>
              <Col span={8}>
                <Statistic title="昨日里程" value={112893} />
              </Col>
            </Row>
          </Card>
        </Col>
      </Row>
    </PageContainer>
  );
};
export default Welcome;
